<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>事件对象</title>
</head>

<body>
    <ul id="u01">
        <li>李昊哲</li>
        <li>刘晓兰</li>
    </ul>
    <ul id="u02">
        <li>phoenix</li>
        <li>小兰兰</li>
    </ul>
</body>

</html>
<script>
    let u01 = window.document.querySelector('#u01');
    u01.addEventListener('click', function(e) {
        // this和e.currentTarget 返回是绑定事件的对象
        window.console.log(this);
        window.console.log(e.currentTarget);
    });
    let u02 = window.document.querySelector('#u02');
    u02.addEventListener('click', function(e) {
        // e.target 返回是触发事件的对象
        window.console.log(e.target);
    });
</script>